package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NAsphaltDataRatio;
import com.ruoyi.zhgd.domain.bo.NAsphaltDataRatioBo;
import com.ruoyi.zhgd.domain.vo.NAsphaltDataRatioVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 沥青拌合站数据Mapper接口
 *
 * @author zyb
 * @date 2023-09-06
 */
public interface NAsphaltDataRatioMapper extends BaseMapperPlus<NAsphaltDataRatioMapper, NAsphaltDataRatio, NAsphaltDataRatioVo> {

    /**
     * 生产数据监控内掺配比数据分页
     * @param build
     * @param bo
     * @return
     */
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NAsphaltDataRatioVo> inPage(Page<Object> build, @Param("params") NAsphaltDataRatioBo bo);

    /**
     * 生产数据监控外掺配比数据分页
     * @param build
     * @param bo
     * @return
     */
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NAsphaltDataRatioVo> outPage(Page<Object> build, @Param("params") NAsphaltDataRatioBo bo);
}
